package com.xyf.sys.mapper;

import com.xyf.sys.domain.Goods;
import com.xyf.sys.domain.User;
import com.xyf.sys.vo.GoodsListParam;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@Mapper
public interface GoodsMapper {

    int deleteByPrimaryKey(Long id);

    int insert(Goods record);

    int insertSelective(Goods record);

    Goods selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Goods record);

    int updateByPrimaryKeyWithBLOBs(Goods record);

    int updateByPrimaryKey(Goods record);

    Integer count();

    List<Goods> selectList(GoodsListParam body);

    List<User> queryCommunityGroupBuyingUserList(@Param("deptId") Long queryDeptId, @Param("orderDate") String orderDate);

    List<Goods> selectByDeptId(@Param("deptId") Long deptId);

    List<Goods> selectByIds(Long[] ids);
}